package com.jingdianjichi.user.dto;

import com.jingdianjichi.changerecord.annotation.ChangeId;
import com.jingdianjichi.changerecord.annotation.ChangeTag;
import com.jingdianjichi.changerecord.enums.ChangeFormatEnum;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Accessors(chain = true)
@Data
public class ChangeObjectDTO {

    @ChangeId
    private String id;

    @ChangeTag(value = "名字",isTableTag = true)
    private String name;

    @ChangeTag("年龄")
    private Integer age;

    @ChangeTag(value = "生日", format = ChangeFormatEnum.DATE)
    private Date birthday;

    @ChangeTag(value = "性别", dict = "DICT_GENDER")
    private String gender;

    @ChangeTag(value = "衣服颜色", dict = "DICT_COLOUR", format = ChangeFormatEnum.DICT_LIST)
    private String colour;
}
